package edu.corn.statemachine.exception;

import edu.corn.common.base.BaseException;
import edu.corn.common.enums.CornExceptionEnums;
import edu.corn.statemachine.core.enums.StateMachineEnum;
import lombok.Data;

import static edu.corn.statemachine.core.constant.StateMachineConstant.CODE_INTERNAL_ERROR;

@Data
public class StateMachineException extends BaseException {
    public StateMachineException(StateMachineEnum e) {
        super(CODE_INTERNAL_ERROR,e.getMessage());
    }
}
